package com.wwwarehouse.taskcenter.bean.job_point;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;

/**
 * author ：minifly
 * date: 2017/10/28
 * time: 14:38
 * desc:
 */
public class AddJobPointStep5SelectbyNameResponseBean implements Parcelable {


    /**
     * list : [{"abstractObjectUkid":1245321,"name":"店铺2","ownerUkid":10001356,"status":"1","type":"H_TOOLS"},{"abstractObjectUkid":12453122,"name":"店铺4","ownerUkid":10001356,"status":"1","type":"H_TOOLS"},{"abstractObjectUkid":22129600000007007,"createTime":"2017-10-30 20:39:00","createUserId":3000007,"introduction":"工具描述作业点汽车","name":"作业点工具1","ownerUkid":10001356,"status":"1","type":"H_TOOLS","updateTime":"2017-10-31 16:40:01"}]
     * page : 0
     * size : 0
     * total : 0
     */

    private int page;
    private int size;
    private int total;
    private ArrayList<ListBean> list;

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public ArrayList<ListBean> getList() {
        return list;
    }

    public void setList(ArrayList<ListBean> list) {
        this.list = list;
    }

    public static class ListBean implements Parcelable {


        /**
         * abstractObjectUkid : 1245321
         * name : 店铺2
         * ownerUkid : 10001356
         * status : 1
         * type : H_TOOLS
         * createTime : 2017-10-30 20:39:00
         * createUserId : 3000007
         * introduction : 工具描述作业点汽车
         * updateTime : 2017-10-31 16:40:01
         * unitName	单位名称	string
         unitUkid	单位ukdi	number
         */

        private String unitName,unitUkid;
        private String abstractObjectUkid;
        private String name;
        private String ownerUkid;
        private String status;
        private String type;
        private String createTime;
        private String createUserId;
        private String introduction;
        private String updateTime;
        private boolean isClick;

        public String getUnitName() {
            return unitName;
        }

        public void setUnitName(String unitName) {
            this.unitName = unitName;
        }

        public String getUnitUkid() {
            return unitUkid;
        }

        public void setUnitUkid(String unitUkid) {
            this.unitUkid = unitUkid;
        }

        public String getAbstractObjectUkid() {
            return abstractObjectUkid;
        }

        public void setAbstractObjectUkid(String abstractObjectUkid) {
            this.abstractObjectUkid = abstractObjectUkid;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getOwnerUkid() {
            return ownerUkid;
        }

        public void setOwnerUkid(String ownerUkid) {
            this.ownerUkid = ownerUkid;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public String getCreateUserId() {
            return createUserId;
        }

        public void setCreateUserId(String createUserId) {
            this.createUserId = createUserId;
        }

        public String getIntroduction() {
            return introduction;
        }

        public void setIntroduction(String introduction) {
            this.introduction = introduction;
        }

        public String getUpdateTime() {
            return updateTime;
        }

        public void setUpdateTime(String updateTime) {
            this.updateTime = updateTime;
        }

        public boolean isClick() {
            return isClick;
        }

        public void setClick(boolean click) {
            isClick = click;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.unitName);
            dest.writeString(this.unitUkid);
            dest.writeString(this.abstractObjectUkid);
            dest.writeString(this.name);
            dest.writeString(this.ownerUkid);
            dest.writeString(this.status);
            dest.writeString(this.type);
            dest.writeString(this.createTime);
            dest.writeString(this.createUserId);
            dest.writeString(this.introduction);
            dest.writeString(this.updateTime);
            dest.writeByte(this.isClick ? (byte) 1 : (byte) 0);
        }

        public ListBean() {
        }

        protected ListBean(Parcel in) {
            this.unitName = in.readString();
            this.unitUkid = in.readString();
            this.abstractObjectUkid = in.readString();
            this.name = in.readString();
            this.ownerUkid = in.readString();
            this.status = in.readString();
            this.type = in.readString();
            this.createTime = in.readString();
            this.createUserId = in.readString();
            this.introduction = in.readString();
            this.updateTime = in.readString();
            this.isClick = in.readByte() != 0;
        }

        public static final Creator<ListBean> CREATOR = new Creator<ListBean>() {
            @Override
            public ListBean createFromParcel(Parcel source) {
                return new ListBean(source);
            }

            @Override
            public ListBean[] newArray(int size) {
                return new ListBean[size];
            }
        };
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.page);
        dest.writeInt(this.size);
        dest.writeInt(this.total);
        dest.writeList(this.list);
    }

    public AddJobPointStep5SelectbyNameResponseBean() {
    }

    protected AddJobPointStep5SelectbyNameResponseBean(Parcel in) {
        this.page = in.readInt();
        this.size = in.readInt();
        this.total = in.readInt();
        this.list = new ArrayList<ListBean>();
        in.readList(this.list, ListBean.class.getClassLoader());
    }

    public static final Parcelable.Creator<AddJobPointStep5SelectbyNameResponseBean> CREATOR = new Parcelable.Creator<AddJobPointStep5SelectbyNameResponseBean>() {
        @Override
        public AddJobPointStep5SelectbyNameResponseBean createFromParcel(Parcel source) {
            return new AddJobPointStep5SelectbyNameResponseBean(source);
        }

        @Override
        public AddJobPointStep5SelectbyNameResponseBean[] newArray(int size) {
            return new AddJobPointStep5SelectbyNameResponseBean[size];
        }
    };
}
